<?php
// +----------------------------------------------------------------------
// | Created by PHPstorm: JRKAdmin框架 [ JRKAdmin ]
// +----------------------------------------------------------------------
// | Copyright (c) 2019~2022 [LuckyHHY] All rights reserved.
// +----------------------------------------------------------------------
// | SiteUrl: http://www.luckyhhy.cn
// +----------------------------------------------------------------------
// | Author: LuckyHhy <jackhhy520@qq.com>
// +----------------------------------------------------------------------
// | Date: 2019/11/14 14:32
// +----------------------------------------------------------------------
// | Description:  
// +----------------------------------------------------------------------
namespace app\admin\behavior;

use app\admin\model\Logs;
use think\facade\Request;

class AdminLog
{
    public function run()
    {
       if (Request::isPost() || Request::isAjax()) {
           # code...
           if ($GLOBALS['log']==1){ //为1添加操作日志
               Logs::record();
           }
       }
    }




}
